import request from '@/utils/request'

// 创建会员用户
export function createSeekUser(data) {
  return request({
    url: '/car/seek-user/create',
    method: 'post',
    data: data
  })
}

// 更新会员用户
export function updateSeekUser(data) {
  return request({
    url: '/car/seek-user/update',
    method: 'put',
    data: data
  })
}

// 删除会员用户
export function deleteSeekUser(id) {
  return request({
    url: '/car/seek-user/delete?id=' + id,
    method: 'delete'
  })
}

// 获得会员用户
export function getSeekUser(id) {
  return request({
    url: '/car/seek-user/get?id=' + id,
    method: 'get'
  })
}

// 获得会员用户分页
export function getSeekUserPage(query) {
  return request({
    url: '/car/seek-user/page',
    method: 'get',
    params: query
  })
}

// 导出会员用户 Excel
export function exportSeekUserExcel(query) {
  return request({
    url: '/car/seek-user/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
export function seekUserList(keywords) {
  return request({
    url: '/car/seek-user/list?keywords='+keywords,
    method: 'get',
  })
}
